Many times we need to use our own app to make some phone calls, text messages and other operations, then how to use the code to implement it, here are some simple ways to implement these operations.Call:Nsurl *url = [Nsurl urlwithstring:@ "tel://10010"];[[UIApplication sharedapplication] openurl:url];Disadvantage: After the call, you can not jump back to the or
In mobile development we will often need to call phone calls, text messaging and email functions, the following is my summary of the method:1. Call//Method 1 The most commonly used method nsurl *telurl = [Nsurl urlwithstring: "tel://13161906451"]; UIWebView *webview = [[UIWebView alloc] Initwithframe:cgrectzero]; [WebView loadrequest:[nsurlrequest requestwithurl:telurl]];//Method 2 Cons: This method stops after the call ends in the dial-up interface N
execute task Manager (or the same level of program). As a rule, shell applications do not receive Wh_shell messages. Therefore, before an application can receive Wh_shell messages, the application must call SystemParametersInfo function to register itself. That is, if your app does not call the following code to register itself before, then it will never respond
Auto SMS is an Android app that allows you to send pre-configured text messages at any time. The most useful scenario is when you are driving. If you cannot resume text messages when something is going on, Auto SMS can send you a message. You can not only use this reply message, but also reply to the caller if you cannot answer the call when you have a call.
Of
: (mfmailcomposeresult) result Error: (nserror *) error{//close Mail Interface [controller Dismissviewcontrolleranimated:yes completion:nil ]; if (Result = = mfmailcomposeresultcancelled) {nslog (@ "Cancel Send" ); } else if (result = = Mfmailcomposeresultsent) { nslog (@ "already issued" ); } else {nslog (@); }}Open Other Common FilesIf you want to open some common files, such as HTML, TXT, PDF, PPT, etc., you can use UIWebView openJust tell the URL of the UIWebView fi
How can I send text messages and make phone calls on Ubuntu mobile phones?
For some platform security reasons, Ubuntu mobile phones do not currently provide APIs for third-party developers to send text messages and call calls. However, in actual applications, we may need to send short
"];[[UIApplication sharedapplication] openurl:url];3. Use WebView to refer back and be legal, recommendedSelf.webview = [[UIWebView alloc] initWithFrame:self.view.bounds];Lazy loading, also known as deferred loading, is not loaded (overriding the Get method) when needed, (it takes up less memory)The role of lazy loadingif (Self.webview = = nil) {Self.webview = [[UIWebView alloc] init];}NSLog (@ "%p", Self.webview);Nsurl *url = [Nsurl urlwithstring:@ "tel://10086"];Nsurlrequest *request = [Nsurlr
Mode one: After dialing using this method, when the phone hangs up and does not reverse the application, will stay in the phone record interface, will not back to the application nsurl *url = [Nsurl urlwithstring:@ "tel:// 13838383838 "]; [[uiapplication sharedapplication] openurl:url]; Mode II: After the call will prompt the user whether to dial, When the phone hangs up, it's back to the app, but the shelves are audited, because it's Apple's priva
screen is open no standby , divided into the following three steps:1. ADB shell am start-a android.intent.action.sendto-d sms:10086--es sms_body HelloOpen the SMS app with the current focus in the text box650) this.width=650; "title=" Device-2015-05-16-161254.png "alt=" wkiol1vw_d-hzrvnaad8tidc3ga257.jpg "src="/HTTP/ S3.51cto.com/wyfs02/m02/6c/ea/wkiol1vw_d-hzrvnaad8tidc3ga257.jpg "/>2.ADB Shell Input keyevent 22 focus go to send button650) this.widt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.